package com.example.bzh.gamecat.ui.cattery.myactivities;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.ListView;

import com.example.bzh.gamecat.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

public class MyActiviesActivity extends AppCompatActivity {

    @BindView(R.id.iv_myactivity_back)
    ImageView ivMyactivityBack;
    @BindView(R.id.lv_myactivities)
    ListView lvMyactivities;
    private Unbinder unbinder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_activies);
        unbinder = ButterKnife.bind(this);

        ivMyactivityBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

        MyActivitiesAdapter adapter = new MyActivitiesAdapter();
        lvMyactivities.setAdapter(adapter);
    }



    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (unbinder != null) {
            unbinder.unbind();
        }
    }
}
